package com.ld.wms.business.material.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ld.wms.business.material.model.MaterialExampleInventoryModel;
import com.ld.wms.business.material.vo.req.MaterialExampleInventoryReqVo;
import com.ld.wms.business.material.vo.resp.MaterialExampleInventoryRespVo;
import com.ld.wms.common.vo.GeneratePageListVo;

/**
 * <p>
 * 物料库存表，用于存每一条库存信息 服务类
 * </p>
 *
 * @author wangfeng
 * @since 2025-02-24
 */
public interface MaterialExampleInventoryService extends IService<MaterialExampleInventoryModel> {

    /**
     * 添加库存信息
     * @param reqVo
     */
    void add(MaterialExampleInventoryReqVo reqVo);

    /**
     * 修改
     * @param reqVo
     */
    void updateById(MaterialExampleInventoryReqVo reqVo);

    /**
     * 获取详情
     * @param id
     * @return
     */
    MaterialExampleInventoryReqVo getDetails(Long id);

    /**
     * 库存列表
     * @param materialExampleId
     * @param current
     * @param size
     * @return
     */
    GeneratePageListVo<MaterialExampleInventoryRespVo> getPageList(Long materialExampleId, Long lockerGridHoleId, Integer current, Integer size) ;


    /**
     * 即将过期库存列表
     * @return
     */
    GeneratePageListVo<MaterialExampleInventoryRespVo> getBeAboutToPageList(Integer current, Integer size);


}
